From 666781e89c0cc6f3e58c413fe7d190843fd825e7 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 19 Jan 2004 18:12:05 +0000 Subject: [PATCH] Add delgpl, saroute tests. --- gpsbabel/testo | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gpsbabel/testo b/gpsbabel/testo index 02b9b5e48..027248baf 100755 --- a/gpsbabel/testo +++ b/gpsbabel/testo @@ -468,7 +468,7 @@ ${DIFF} ${TMPDIR}/reverse1.arc ${TMPDIR}/reverse2.arc > /dev/null && { } # -# Geoniche: No referene file was available, so we created one and just +# Geoniche: No reference file was available, so we created one and just # test it against itself. # rm -f ${TMPDIR}/gn.pdb ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx @@ -477,4 +477,21 @@ ${PNAME} -i geoniche -f reference/geoniche.pdb -o gpx -F ${TMPDIR}/1.gpx ${PNAME} -i geoniche -f ${TMPDIR}/gn.pdb -o gpx -F ${TMPDIR}/2.gpx ${DIFF} ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx +# +# saroute covers *.anr, *.rte, and *.rtd, but I only have an .anr for testing. +# Unfortunately for us, this is a read-only format for now. +# +${PNAME} -t -i saroute -f reference/track/i65.anr -o gpx -F ${TMPDIR}/gpl1.gpx +${PNAME} -t -i gpx -f reference/track/i65.anr.gpx -o gpx -F ${TMPDIR}/gpl2.gpx +${DIFF} ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx + +# +# Delorme GPL file. This is sort of a track format. +# +rm -f ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx ${TMPDIR}/gpl1.gpl +${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpx -F ${TMPDIR}/gpl1.gpx +${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpl -F ${TMPDIR}/gpl1.gpl +${PNAME} -t -i gpl -f ${TMPDIR}/gpl1.gpl -o gpx -F ${TMPDIR}/gpl2.gpx +${DIFF} ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx + exit 0 -- 2.30.2